Added test for startOfDay between midnight and CDS