Testing more cases for filterRepeatedCoordinates