Added test for CModel::addValidator method