This will not guarantee a guest is *off* for a test, it just means it won't be started automatically if it's not already running.  Suggest adding <code>vms = ""</code> and/or logic in your test to check if <code>start_vm == "no" and vm.isalive()</code> then <code>vm.destroy()</code>.