add test for preceding newlines