unittests: correction of scheduler SQL statements