Add tests, fix exit code issues

I would like to delete https://github.com/gregrperkins/grunt-mocha-hack