[api] Using a per host hook on test.rb to override default assignments