Removed a leaky global and ported tests for microevent