Errors rework
mocha test