[1.5.x] Fixed #19112 -- Reduced the amount of query params in a test

Backpatch of 604d8763dc2c901a3557e15880895d88af5c4127.