Add tests for dateFormat