added tests for readlines func