refine partition test