Added test for getHeadRev for branches with namespace