Updated tests.
Implemented readline.