Scsi testsuite

Update the scsi testsuite can run with patches. And fix a small bug in it.