Write test for pairs