Converted uint32_t to uint8_t in tests

Also added wordToByte() and byteToWord(), which takes bytes or words
and converts them. wordToByte() puts bytes in network order, and
byteToWord() puts bytes in host order and puts them into words
Cleaned up a little bit

The test system now transfers everything in uint8_t.