Added tests to npm package.