Added limit folding tests

Adding tests

Refactoring