Assert on the contents of the byte-array to see if the problem happens during writing the data or reading it back in