test: add a test for a repeater and a global pipe

Fixes #281 

This is just a non-regression test for the issue #281 that is fixed in master already but did have any associated unit test.