Fix noop transition check for cases where previous transition failed

An attempt to fix #43.

Haven't figured out how to run the tests yet or how to build the dist versions of the lib (running rake doesn't work out of the box easily).