Chnaged tester to help debugging
Fixed bugs in valid date checker