testing TokenScanner class