write gaia multiavltree's test case and fix some bugs.