test a method call on a event trigger