Handle old and new API in mock
Workaround to leveldb/changes limitations