add a limit and a test to FlattenExceptionTest.