Fixes to work with clang compiler.
Added tests for interactive command line interpreter.