Add sprintf npm package.
Fix test.