CDB-3256 Fixes test related to cache in templated layergroup creation