added some rules and tests