Assert slave not master.

Test asserting on master that has to be slave.

Review: https://reviews.apache.org/r/22779