added test for custom rules