[1.7.x] Removed unnecessary directory in dispatch tests.

Backport of 136a3ffe21 from master