[PATCH 16/16] unit: Update tests usage of certificate API