Added unit tests for class explosion and class ConsoleInput

The test for console input is commented but it is necessary. Make last
few little changes in code.