If test fails, return a non-zero exit code
Merge pull request #6318 from wmtan/ReturnNonZeroIfUnitTestFails

If test fails, return a non-zero exit code