fixed event queue execute, fixed warnings
added test