refine test case, make it more stable.