Added custom class rule to cope with mongo versions that don't support text-search.

TestSearch is only supported from MongoDB 2.6 but travis CI uses an older version at the moment.