Added tests for using an empty ByteArray.