Check qual and compare for family tests

Fixes #267. Hash table lookups assumed qual="any" compare="eq".
Add a test too.
4 files changed