The self-testing COTS components (STECC) method