implemented GetRepo + Test cases