fix runtest in batch control