refine tests