refine sweep tool test case