fixed the required_if replacer
added test to check required_if with multiple values