renamed input streams in test to be more descriptive
fixed message and packet format to be more correct (referencing SIZEOF_INTEGER)