Add build in rule for custom function validation.
Add test case for build in rule in custom function validation.