unit tests are update
Rule class updated