Fixes findBugs warnings 

ByteArrayReader reader was unused, _tempFile potential null pointer access and assertArrayEquals should be used to compare arrays.