Implemented a TestConsole class in order to simulate user input for testing purposes.