Fixed issues with date lib and unit tests, one test still failing, will fix later