[tests] remove spurious iteration

When adding the grid view test, I did some copy'n'paste stuff for
deprecated methods. Unfortunately, I forgot to check without
DISABLE_DEPRECATED_METHOD_CHECK. This patch removes a spurious for
loop iterating over the grid.