Add test to check the lines are grouped based on filename
Add test to check the lines are grouped based on filename