Test that an invalid attribute in a keycert object is validated properly.