added expiration checks to authenticationservice unit tests