getter now expires cookies before returning, added a unit test to check cookies are being expired properly