Add tests for parseDate and Formatdate