Further externalize QUnit tests

I further externalize QUnit tests from inline JavaScript to separate
CoffeeScript files.