tests - add error handler for loading scripts.