fix mock requestAnimationFrame to allow chaining
add teardown to test(L1457)
prevent infinite delay on redraw