Just for the record, what started me asking this question was a mage with a
rank of 78 but a casting rank for the spell of 57 and then 58 passed the
first test but not the second twice.
A very small sample but seems to point to casting rank.
David