fix mergesort, more test options