refine testing config