add tests of invalid state transitions (#18)