fix tests, initial non-working spi, refactor loading device tree