Adds tests for rule object and its flags.