Fix test incompatible with 1.8.7
Merge pull request #11930 from UncleGene/ties_test

Fix test incompatible with 1.8.7