add test for getting duration
rename