Session expiration test fixed