fix most troubles with duration serialization. #234
minor #234
fix tests. #234
fix test values #234