Uplaod th npm registry and fix test failures