fix recursive calls
unit test with periodic thread
simplified
fix access to settings table
use test logger
fix logger name