Mocking tests for resources