added tests pre publish to npm