Libis classes and PHPUnit tests for CA