Add tests and allow chars to be read from scanner.