bdb: Integrate bdb_test