add query by accession number and query by exam date, and add test mode for test