test for pairs