Added test loop for dictionary removal