I added warning log when the date is invalid, also I separated the new tests from the rest, this needs to be squashed