test for markPairs