add tests for lmdb of datalayer (copied from test_data_layer.cpp)