test return lines based on test, with line count