Access to current time

Improve the access to the current time in the unit tests