That exactly why I used `tabs.activeTab` instead of `tab`, so that I do both the check that the state is updated and the `tab` is equals to `tabs.activeTab`.

However I will add a similar test you mentioned because, well, the one you mentioned would fail; so it's good remember in the test that `state` method returns a snapshot of the button's state, so the current instance are actually different even if they could contains the same property.