add assertion to testSortByAmountWithDesigParam

(this showed the problem fixed by Bill in previous commit)