added event bus and tests that check notifications on it
move event emitter up