Fix mocks to pass, be dynamic per ddoc, and properly use ddoc as set and verify