Fix call to boost::gregorian string conversion
Fix a unit test