adding tests for queryBuilder.buildMongoQuery