Tests for newline preservation at close of expression

Closes #239