test for modifier in state, not if they are equal