Fix resource leaks in ByteArrayEncoderTest