Testing callback and clearing