read lines, tokenize, tests