Adding tests to ensure that the event is fired correctly