Remove hooks before running tests.