disable the resize checker in the tests

By disabling the resize checker we greatly increase the speed of the tests. This disabled it using stupid global variables. Track #2426 for a real fix.