Fixed the unregister method in Event and in the tests.