Implemented pauseAnimationsForTesting and test-pause-for-testing.