pass tests using the angular resource service to create the resource