Adding test against `is_on_git` for `git branch` based errors
Moved back to working `is_on_git` =)