node module, added tests