Added a test to verify fields in documents have to be in a struct or a map