fixed date handling error when requesting historical data
tests are now passing