@pruivo But then you're relying on the fact that nobody else ever calls duration() during your tests... I think it would be relatively easy to have a TimeService that returns a "constant" value as the time, and only increment it from an interceptor to get your duration of "1".