karma tests for filter and duration service