Add GetDuration and some tests
Merge pull request #11 from adjust/add-duration-settings

Add GetDuration and some tests