Added a test for ElasticSearch docs with DBRefs