add layer traversal and more test on btree_insert