Better tests

Once finished, this PR should introduce:

* Rewrite of the tests using [mocha](http://visionmedia.github.io/mocha/), [chai](http://chaijs.com/) and [chai-gulp-helpers](https://github.com/jussi-kalliokoski/chai-gulp-helpers).
* Coverage reporting.
* Better test coverage.