fixed spidev test so it is not opening the device read-only