Update to use mocha for running tests, much better output and error diagnosis.