testCollector: new cmd line switch

New command line switch (-m, --mode) allows to change the
output format (tree or line)