implemented simple BranchTest