unittests: validate venv only if setup is defined

Change-Id: Idc979c611546ad38e0c79a227fc16de9019e33dd