Fix test failures occuring on windows by replacing Hamcrest's hardcoded unix newlines with the platform's correct line separator.