KFSUPGRADE-1002 add unit test for pupulateDocumentAfterInit