Fix AnimationGroup tests and refactoring of AnimationSequence tests