tests for durationMs