Added tests and configured npm package