Mock insert ddoc correctly detects if already exists