Java tests for BTree