Fixed required rule.
Update exampel readme.
Add non-required test case.
Update test function name
Fixed required logic for string value.