Added unit tests for dbr_conf, refactored dbr_conf