mongoose test fix