wrote tests for DynamicAssets and utils.walk

I wrote tests for `DynamicAssets` and `utils.walk`.

I also fixed a bunch of other tests that were incorrect and a few that broke with the last few commits (mainly due to switching to the `application/javascript` mimetype).

And I switched to using `mocha.opts`, hope thats alright.