tests linesOfCode function