simulator: return correct exit code if some tests failed