now with platform-independent tests

as tests were failing on Windows because of hardcoded line endings.