updated test for mongoose