Finished ByteArray read/write now fixing tests