fix temporary result directtory creation in tests