Migrate test engine to mocha, sinon and proxyquire