unit and midway testing with mocha chai (coffeescript tests only).