adding another test for coordinates in a pair in opposite order