Correctly use test cases parameters when resizing