autotest: fixed multi-instance support