test post a resource