fix mocha test dependency owner
get back toPromise function
use commonjs instead of es6 module