Add tests; fail if cert is not present or is empty