fix testStoreDocWithSomeError