How to properly test hierarchy and order of the toolbar?

We are improving our toolbar in our web app. We are planning a tree test or similar to test the tools out.

A bit stuck on how to properly test the hierarchy and order of it. Any available methods or strategies?

Any best practices from Adobe, Figma, or google doc?

enter image description here