Change exit code to number of tests failed instead of hardcoded zero.