Remove eachLines and replaced with for loop/smaller test(easier readability