fixed host tests; added test for metadata