Fix the cert-key-test by adding "err" before "assertion"

fixes #3389
Merge pull request #3391 from mozilla/issue_3389_cert_key_test

Fix the cert-key-test by adding "err" before "assertion"