added test for create resource