Add test for ignored out-of-scope events.