Modified a test dealing with expired keys.