Dictionary import tests and Temporary file test util

Just out of curiosity was one of the requirements for this testing that `HDFS` is distributed? Unfortunately, while easy, the behaviour for local file mode can be (quite) different from distributed mode. :(