Restructure HTTP tests and exclude some transitive dependencies