Set instance.prototype correctly (to the class)
Added validation
Added a test framework and tests for Events and SubscribableDict