use Mocha for testing

better Promise support