cherry picked tests from davidcollie/Mockgoose
fix incorrect partial matching for $in
Merge branch 'fixIncorrectPartialMatchingForInQuery' into dev