add tests for Resource.create failures