add test script to npm package definition