Modified the mongoose test