Test with Cocoa main loop.