added some test cases in btree.c