Container replacer tests and implementations