Fixed EOL character for Windows test runs

Specs with hardcoded "\n" expected at the end of files fail in Windows.  Fixed this using require('os').EOL.

Tests pass on OSX and Windows.