test of API with mongodb, express, mongoose, nodejs