Changes corresponding to fix for mongoose #2143
mongoose #2143 unit test
Merge pull request #11 from vkarpov15/mongoose-2143

Changes corresponding to fix for mongoose #2143