[FIXED JENKINS-23966] Master labels disappear when system configuration is updated

See my observations in https://issues.jenkins-ci.org/browse/JENKINS-23966.
BTW `assertEquals` is more idiomatic.