Testing for git errror