Add env in test commands list and resort the list.
Fix test failure on platforms with non-standard sorting locale.