Added tests for ClearCommand