Design of a Testing Tool Based on Fault Injection for Functional Safety