Test code to call web api