Adding an additional test to ensure the button's state actually changed.