Added more tests. Also added return of 404 if the session id to renew is not found