Added an animation test and tested it against the old code.