several refinements and fixes in MockClient, plus tests
modified all op tests to use new MockClient api