increasing test coverage : covering onbefore_event_ use cases