added a spec for ensuring that an event was raised