Refactoring tool_tester for mass testing.