add test_branch.cpp