Updated test script to install, update, rebuild, and THEN run mocha