Test HTTPS and multiple requests as well
Fix a race condition