Test transition in getTransitionToState().

Transition can be denied by event, thus I think we should test it before we say it is possible.

Ping @winzou , very nice library :D