added test that exposes bug in our state comparison.