Use better way to open btree file.
Add unit test case for btree's chunk struct.