Unit tests for offset modification in SparseSwitchPayload and PackedSwitchPayload.