Some fixes in DateTime constructor and tests
Minor fixes in unit tests
Regex refactoring