test for handling \n