Added test case to prevent regression of chained, preloaded scopes. (#7490)