Added unit test for log clear & cache clear command