updated single test to read a line at a time