fixed test call: query_lines, not species