Add tests to make sure no errors are thrown

also use path.join for multi-platform compatibility
linter #cleanup
Merge pull request #51 from atomify/addErrorTests

Add error tests (and fix travis)