fixed a few bugs (uninitialized memory mostly)
bug fix in FileData test