modify model generator warning message. refs [#174c9f0]
Merge pull request #14174 from kuldeepaggarwal/fix-resource_generator_test

fix test cases