run mocha tests in a headless PhantomJs instance