Adds rule and tests