Test coverage for retract_layer_change