Fixed piped emitter bug by adding the triggerOnly method
added test for piped subevents