Add random filter
Add random filter tests