update collection removal utility for tests