improve state transition tests (#18)