Added branches API endpoint test