test for the getnextline function