Fix g++ warning (comparison between signed/unsigned).
Complete the generic testRuleOnCode with 'TAG' location.