Add reordering/nonmatching/lookup tests for mantel function