Added some more tests for the EventDispatcher.js