about bd

fix doctest in inst
add doctest in bd
use backdoor for leader