Add a test for agent filters

A whole lot of code for very little gain...