[cli] Better error message on shh when authentication failed [fixes #49676225]

Also improved some unit tests.