Added a test case for duplicate scripts in the same page