added a test for triggering a rule