Add an extra test for StateT's Apply instance

Catches a potential subtle bug with wrong sequencing of effects.