test: fix code tap test skipping

565c20f9 inadvertently caused all checks for pass on exit to be skipped
(since helper is not the main when used as a helper for the tap tests).

This reverts the change, replacing it with a more specific check.

Once pass was checked on exit, it revealed that when object tracking is
skipped because of lack of license, pass was not set.