branch iterator test