Test commutativity and associativity.