Fault-Independent Test-Generation for Software-Based Self-Testing