Fixed branch test bug