Test Generation function placing results into appropriate directories