Made failed test runs exit with non-zero exit code

This allows travis-ci to realize the build should fail because
of tests not passing.