fix warnings and error of test cases.
undelete setDate() function.
modified output of query-log