Test error handling
Fixed scripts