Test passing Host object to Credentials