added testing for clear command