Clear handlers during testing