tests(api.mocha): move bac to coffeescript from javascript