fix date.py tests and add new use case