Mock out Cocoa run loop while running unit tests.