updated test for valid task date