Add test to check responses to requests sent using an expired cookie

Change-Id: I4603320d999212a45be822d331890aab0f22468d