Improve test to not be so fragile around newlines.