isPair and TwoPair test cases