add test for find by xref function