Reenable ancient failing unittest.

Fix unittest to not require unreasonable amounts of stack space, so that it won't cause stack overflow on platforms with small stack space.