Added test create_resource. (previous commit was missing updated code)