Add unit tests for repo_utils

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
Improve missing branch detection and logging

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>