refine test setup