Add test for ca being an Array.

Fix test where cert option was being assigned, not checked.