refactoring changed_by assertion.
add branch registration feature's testcases.
add key column to bx_histories.