Add custom hook before and after a test is run.