Add an exit code to the test suite

By adding the exit code 1 (or any other non-zero exit code) `npm test`
will know the tests didn't perform correctly. This way it's easier to
know if pull requests are good or bad.
Merge pull request #322 from rvanvelzen/test-exit-code-1

Add an exit code to the test suite