event queue, unit tests