fixing unit tests for renaming of length to duration