added test to check StackOverflowException