modify test for hub_test.go