These HTTP test functions are in a separate package to prevent circular dependencies.