fix date test query