Preventing When Action from being executed multiple times.
Added polymorphic event test