some tests for trigger()
failing test with trigger() and off()
fix off() to properly remove listener