mocha db mail test and server test