Clean up grunt/mocha config and set ui to tdd.

[skip ci]
Briefly test the export.