New test: functions from protocol (checksum, etc.)
Improved checksum test + type signedness fixes
Functions to write data and checksum added