starting with rewritting tests in mocha