Fixed duration conversion for long videos.

- Nice_duration now converts videos longer than 1 hr properly.
- Added unit tests for the function