BranchDetector now use the solution dir as base. Also added some unit
tests