Refactor tests to reduce code duplication.

Hi,

After adding tests for CoffeeScript, the tests were starting to have
really too much duplicated code so I refactored a little.
The main changes are

* Move common logic to a helper function
* Move duplicated `beforeEach` to a global `describe` block
* Change `helpers.assertFiles` to `assert.file` as the former has been 
deprecated