Fixed LocalDate conversion
Added unit tests