Adds spec test for cloud_resource model