The npm test script was dirty and had the unneeded side effect of generating an output file. This change moves the test to a real bash script that runs the appropriate tests and also additional checks when ran from Travis CI during a PR build.