[Test] Fix resize mode test