rules controller test