adds test for Host class
supress some more warnings
fixes conversion specifier mismatch