Dynamically define filters during tests (Closes #10)