[test] add tests for determine-the-order