fix compiling error in TransitionTest on vs.
Merge pull request #4828 from Dhilan007/develop_crash

fix compiling error in TransitionTest on vs.