added mocha test for user model