Add a test for endless recursion.