tests.cmdlib: Test _ApplyContainerMods