logging and query statement test for scheduler