Added exit code to tests.