test for https error handling