added getTimerCfg json api + unit tests