Add some operations involving resources into API tests