Add unit tests for collection deletion