TST: Make test_user_agent run in CI
Renames `test_user_agent.py` to more generically `test_http_headers.py` and uses the `httpserver` to make this test more reliably run in the CI
Tests are passing so merging. Happy to follow up if needed