Simplified the test code.
Added tests to check the duration value is equal or less than old value.