Add tests for date parser