write test cases for closest pairs