run tests in a tmp directory