fix pair_perfect test