Added fixed test.js to run sample simulation
renamed test.js to runSample.js