TST: Adds test cases for the EventRule objects.

Fixes issues discovered while writing tests.