refine test.py