Technically, they are already in the same group (number 1). You just match the cold
/warm
... part in a second group too, which apparently you don't care about.
If you want to avoid this useless capture, you can use a non capturing group (?:...)
;
/(test|test1|is(?:cold|warm|large|small))/