update test to use name attribute instead of hostname