Tests for branch class