Convert test file JavaScript to CoffeeScript