working through test failures
further test error correction -> removing setLength, EOFException on readBytes