Regression spec for 'stack level too deep' #5384