add container resource change and tests