Use Timer class in PeriodicTask, unittests