Add duration filter unit tests.