Test data integrity and variable-length messages