The spi_test.c program should now accurately simulate the behavior of tuning the MSA.