Fix bug in scsi self-test function