Fix tests under nodejs. Add RAF/cancelRAF to options.