adds unit tests and fix bugs in conversion from string to date functions