rules and tests rules