tests for rule class