#982: add test case for newlines