fixed issue with fail to create rule added new rule test too