add unit test for sweepRegistry and remove FIXME