Multiple bug fixes in the eventQueue class. Added a test suite for 
the event queue