Fixed the required_if message replacer

added test to check required_if with multiple values

moved the test to proper method
Merge pull request #5262 from mohitmamoria/4.2

Fixes the required_if messages if multiple values are passed