remove permuatations in trietest (order is critical for test)