added tests for newline. also added ability for newline to take a string