Revert "Fixed recursive foreverness. Added Test Case"

This reverts commit ffdd0de9633a77f35dba6eb0ed2ee844fc84dc3e.