added local tests for xmatch