Added tests for ByteArray resizing.
Added rudimentary tests for ByteArray read and write ('array-like features')