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