Fixing unit tests

Mocking the load of async scripts to always true