fix download attachment

Fix two errors in recursion, that caused, the file for download was not found, when there are more tests with YAMLish (and file for download in not the first) or more files for one test.