Fixed #2219 Add AutoTest for Sprite tests