Fixed run tests to return exit code