tests: api.mocha.coffee cleanup WIP