run tests on directory