Fix tests to run with latest Mongoose