fix and unit test for coffee script instrumentation