add unit test for duration filter