Add testcase for cert verification