use jest to replace mocha
recovery semicolons and improve tests