Fail grunt when tests failed

When using the grunt plugin to run testee, failing tests will not cause grunt to fail. This pull request attempts to fix this.