Avoid errors about path not being set for test

I get errors about path not being specified for the test in "onlyif". This fixes it.