Add tests for incorrect transaction handling

This is only a test. I think you'll come up with a fix pretty easily.

In case it's not obvious `value` in line 247 is `QUEUED`