Test to verify fields in a document can be extracted from a struct