updated test logic to return proper collection type
updated test logic to return proper collection type

taohaolong/mongodb-1,bjori/mongodb,alcaeus/mongodb,researchgate/mongodb,doctrine/mongodb,solocommand/mongodb,socialcdetest/test,talkspirit/mongodb,lyft/mongodb