fix and add tests for coffee and es6