Added tests for issue #1867.
Handle ms separately when calculating duration .as method output.
Durations cannot contain fractional milliseconds.