Set hostname in tests to fix failing example