Replaces python test.py with node.js version
Merge pull request #1741 from yurydelendik/newreftest

Replaces python test.py with node.js version