Bug for endDate in test
Print debug