Added test method for parsing branches