Make TestSymbolDatabase::hasClassFunction's code snippet valid.
Merge pull request #444 from simartin/testsymboldatabase_valid

Make TestSymbolDatabase::hasClassFunction's code snippet valid.
Cache search result to avoid dual search
Merge pull request #446 from Dmitry-Me/eliminateDualSearch

Cache search result to avoid dual search