fixed loadScript test (success case)