Mongoose generic_functions test