fix expried certificate in unit test