Unit test for console reader