Add test case for dynamic script loading