17403 implement collection specification

[``* `#17403` Implement collection specification``](https://community.openproject.org/work_packages/17403)
Why are you testing for the used class. That shouldn't matter. I would rather test the outcome of the call than which class was used.