Fixed error in AnimationStateTest.