(#2689) Add tests about filtered replication

Hello,

@jacargentina  asked me for a failing test. Here is my first attempt. Tell me if this test is satisfying. 

Frank