Adds tests for ByteArray.