Replaces tests with mocha equivalents.

Also adds tests for 'touch' and the handling of strange config objects.