Improve testing generally, for example with the cases commented in https://github.com/src-d/gitcollector/pull/62#issuecomment-512164425