Fix tests on windows (close #19)

- Fix DIRECTORY_SEPARATOR usage in tests
- Use \n as line ending in generated files