add more explicit tests for action sorting behavior