add assertion to createDBDocs