Added test for duration setting