Fix unit test; change permissions on CA.