fix expried certificate in unit test

(cherry picked from commit 88561e154f6d451d2437e7e6887417df6106c275)