跟字符集有关系
还是这样保险一些
and a.test_date between to_date('2004-10-06 01:00:00','yyyy-mm-dd HH24:MI:SS') 
and to_date('2004-10-22 01:00:00','yyyy-mm-dd HH24:MI:SS')