filter rules test, should cover the generate clause method of this file.. I guess I can add validation tests. Diff PR