Clear command editor and logs before the end of the tests (related to #143)