rewrite the tests to mock os.execvpe to avoid replacing the test runner process