(#502) Fixes false ambiguity warning class vs. type. Closes #502

The search for host class should not include search for type.
The test was not correctly constructed and used a type instead of a
classname.