mocha success and fail test