mongoose #2143 unit test