added event loop testing