Improved support for command line REPL and script execution
Renamed test class to ConsoleRepl