add mocha test for the auth module