added functionality for path tests
cleanup of tests