improved test coverage
fix console input