Test stale history cleanup on full history sync