Fix test mode

It is now necesary to set the target to AIs.
It was not done in test mode.