getStateFromModifier tests