What else should the test runner do?
You just illustrated why trying to assume the functionality of a third-party app instead of calling it creates even more bugs.
You have to know where the tool was installed or else be certain no other sl is on your path.
By the way, believe it or not, POSIX compliance requires existence of only two directories (/dev and /tmp) and three files (/dev/console, /dev/null, and /dev/tty) on the system; everything else is completely optional, including existence of /bin, /etc, and /usr.