tests for mongoose