Testing cache expiration method