tests for external references (implemented in the mongodb adaptor)