On finite commutative semigroups having a group-like property