ENH: tweak warning when check_prefix fails.
BUG: fix tests following check_prefixes change.