test for Referent.create_by_context_object