Refactor EventHandler, InvokEventHandler and ProcEventHandler tests