Fixing silent fail at session expiration time when delivering a test.

I think you may have to test the HTTP CODE, not the text returned by the server.