test(doctrine): add tests for Dbal CacheWhereBuilder and Factory

And fix a bug in Dbal CacheWhereBuilder::getWhereClause()