test checks if session is not expired