am 8360bace: am d20bfedb: Fixed the scope of database query for CTS testWhenByDayQuery

* commit '8360bace37c0803308209bc098c52378dc380d91':
  Fixed the scope of database query for CTS testWhenByDayQuery