Tests around hubs.rb.  Broke up config method for easier testing.