simplified Clean command
added tests for Clean command