test for pairing