=str #15740 hookup filter and collect

* copy tests from old DSL
* adapt ChainSetup to the new DSL

Fixes #15740
move scaladoc also, please do that for `transform` as well