Sanity tests for request/cancel animation frame