Fixed bugs in AnimationTest