Experiments testing the commutativity of finite-dimensional algebras with a quantum adiabatic algorithm