Fixes #4984: Rewrite tests to uses classes conditions for execresults an.d returnszero, for CFEngine 3.6 compatibility

I don't think this does what you want. These two ifvarclass calls will iterate over the list "file_list", but you should actually be using file and file1 directly, respectively.