Refactor `#test_include_module_with_constants_invalidates_method_cache`

* [Including modules containing constants no longer invalidate method cache](https://github.com/ruby/ruby/blob/trunk/ChangeLog#L2830-L2832)