fixed #2219 Add AutoTest for Sprite tests

fixed #2219 Add AutoTest for Sprite tests