running mocha programatically