Temporary test directory should be created if not existing. Fixes #6