Tidy up mocks after testing.