mongoose mock on application test