Refactor mocha tests kickstarter