Don't use a predefined time here. That may make unit tests unstable. Please introduce a variable at ForwardRewindController and change that value to 0 at unit test. After that, we may just use setTimeout without time span to do the test.