[tests] resize cluster if necessary