test should run with bad certificate for test domain