Added test case to prevent regression of chained, preloaded scopes. (#7490)
Merge pull request #8913 from seejee/regression_test_for_chained_preloaded_scopes

Added test case to prevent regression of chained, preloaded scopes.