Added test for resource model mocking