Tests clear method