Fixed error on adding and removing from container.

- Added two new tests for tracking this error.
Improved FoldingSection folding operation design.