test-rule with relations as guard and transformation