Test now covers clearState() function.
Test now covers a command line argument error.