Issue #3541: add Sprite tests for NPM testing

add Sprite tests for NPM testing