Added tests for cleanup by clear().
Adding to set returns boolean if the element was new.