Fixed unavailable console features on some browsers.
Fixed test failures caused by no assertions and async event emitting, as well as simplified the returned promise.
Merge pull request #118 from garryyao/develop

Various unit tests fixes.