Added unit test for command line (single mode only) #50