(fix): Convert test.sh to test.js

This would enable the tests to be run on both Linux and Windows.