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

I'm pretty sure this ```${init.file}``` should be  ```${init.file_canon}```