test for initalizing a dynamic field on a document