Patch the test code to be cross-platform.

This should correct the deficiency introduced by the pull request #118 (GEOT-4260). On windows the hard coded line-endings '\n' cause the test to fail.