Update os_can_exe() unit tests.

patch 235 added a new argument to os_can_exe(), the path of the
executable. Update the tests to verify the output as well.