OS-dependent newline caused test to fail on Windows

Fixes #123.