(fix): Convert test.sh to test.js to run on Windows also

Converted the test shell script to run as a node file. Nothing specific to shell script is used, so converting it into node script would let it run on Windows also.