Fix bad task host selection

It looks like #873 has broken the test battery where the tests concern
bad task hosts.

Sorry, but I must have run the test battery in *dream* mode yesterday.