Fix loading fixtures in engine tests

fixture_path is a class attribute of ActiveSupport::TestCase, so
ActiveSupport::TestCase.method_defined?(:fixture_path=) would always
return false.

This should fix #4971
Merge pull request #17029 from grk/fix-loading-fixtures-in-engine-tests

Fix loading fixtures in engine tests