It only tests that two different BosonOperator instances are considered equal if their labels are equal. I think it is a valid test.