better error in mocks