refine and update the test file