Tests for statisticFile. Test for write does not work yet.