(#2689) Add tests about filtered replication

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