TODO test for corner cases: date too high/low