add test for broken sort