Added test for detection of infinite recursion in optional and kleene star.