Adjust tests to compensate for --trusted-hosts