updating npm publish for #516
added tests for npm changes #516