test for custom eventpattern