functions are faster than lambdas
rewrite the tests to mock os.execvpe to avoid replacing the test runner process