Use Mocha and clean up tests
Support es6 module type. Fixes #6
async function fixed
readme fix