Using temporary meta class for class method mocks.