For this test, I do not add all machines in the list.
One test will kill the first machine immediately after this func() returns. In this case, the test will fail.