Fixed tests to take proper order of operands into account