Contact Forms: Remove hooks before tests.

Make sure no relevant hooks are attached before starting to run the tests.