Add tests for MainThreadPoller