The SQL executed by the test that was expected to pass wasn't correct SQL. It appears that a CAST from an INTEGER to a TEXT value is not possible.
The new tests now use the correct syntax for the rule files.
The test checks that only the functions that aren't allowed are blocked.