add test for started new line bug fix