Refactor gagarin to be a custom mocha interface