Handle path better in analyseTestSet
Use actual number of lines for calculations (instead of repeats variable)