Fix stackoverflow test unit test.