mocha api test, database connection review (singleton)