add integration test for command clear

-add integration test case for command clear