Fixes issues with using the Scheduler RPC to determine hosts

The patch to start using the Scheduler RPC select_hosts(...) did
not appear to work and broke the unit tests. This fixes it up to
become functional.

Change-Id: Ic646f6977b9f494cfd04ac368c57932569bdb216