Bug 10508: add unit tests for C4::Branch