Fixed isValidDate + fromToSeconds + some tests

Regards,
Jarek