Added unit test for AnimateSprite