Adding test for doc.toObject({minimize: true, getters: true }), for #1607