Fixed custom function rule without value, and Add test case for custom function rule by id.
Fixed [pattern] without value