[BE] Test trymerge against hardcoded set of rules (#79764)
Otherwise we'd often get into chicken-and-egg problem and have to modify
test to satisfy new changes in merge rules
Add new test to validate that merge_rules are valid
Pull Request resolved: https://github.com/pytorch/pytorch/pull/79764
Approved by: https://github.com/kit1980