refactored BTreeTest