add tests for dbm method