Add test for new line bug