add test and fix some bugs
fix interface bug
add lease manager
Merge branch 'lhh_dev'