Tests and better organization for request.go