fixed sweepRegistry test