Move autotest into tools