Fixes rAF dependency during reftest