Detecting defects of the object to be tested