Fix site ID fallback when testing.