Use the login name from id -p to compare with ps -o login. Thismakes the test pass when invoked by doas.
tests for the following keywords: cwd login group rgroup ruser user