Change testing framework, from QUnit to mocha.
Reformat and reorganize tests.