Added tests for branch

create
delete
isHead