Allow host preference for array of hosts

If options.hostPreference is set, choose the host correlating to the
element in the host array specified. If
Test script to show this working