You should also verify that the expected item is being send. + You need to test that if set to false, the value is always false. It could be that there are problems in the code you are not discovering in your test. And even if the code currently is fine, having good tests in place, is a safeguard for us when we do a refactoring because we don't need to be afraid that we break something that is left unnoticed.