test: Clearer code assertions in check-login

Readable output when the HTTP error codes don't match.