fix tests with newlines