Bug fix. Error thrown when setup mock operation in mock container.