test: extract a method to set environments for release:info:update task