Change cols to subset in duplicated and update unit tests