update the user unit test with using mocha