added clear and confirmed clear functionality & tests
updated tests