Change to define tool object in each test case