added test for nested loading of script