Reinstate CliGitAPIImpl test of exceptions for isBareRepository

Previous commit removed two of the assertions