Added tests for command line