Added unit test when handling ErrorEvents