fix remaining tests to run with mocha

also fix a small bug, and improve package.json mocha args