Add CapConfig unit tests.