switch to mocha for tests, added code coverage