Add tests for filtering in DetailView