add test.py and fix future date bug