setting up timeService + unit tests