Add mocha as dev dependency, expand tests.