make api tests also use a random hostname (but constant throughout the test session)