add unit test for Mercurial branch history fetching