Use document['fieldname'] getter in collection unit test