updated test for sorts