fix to duration with test.