Added unit test to ensure command exceptions are caught and an event is raised