Fix checkDate - fixes test