Dictionary import tests and Temporary file test util

(Note, might need @charleso's fix in the other PR)