testing that endpoints and http_method are used