fix: issue #57 change order of if statements (#58)

Rewrite method to account for tests where many files are present

17:36, 12 February 2023

a20f4b64f82814614a854cafedaf26e719485af8

This commit has not been processed by the CI server