hasBranch tests