New feature to add some rules
UT for rule feature
API + bugfix
Unit test