statistics: massively simplified statistics and added tests
clone, git: do not print garbage when tests are successful