Use add_callback to trigger ioloop in test.