add test for $\n fix