The spec describes the internal representation of Duration as float64- representable integers. There are a few tricky ways that it is observable if an implementation does not do this correctly. Here are some tests for them.
Duration/out-of-range