moved startTest logic into util.js