A set of functions to test web api routes