Fixed and refined ThreadTest for BTree