Modified SPI test to correct device file