fix Variant decode parameters
- extract date conversion to own file.
-  #22 fix test