Improve tests for CoffeeScript

This tests changes is for PR #287.