updated mocking tests