fixed the failing unit test on the cluster, when writing test files