add test case for stale tree bug, a0e8292