Add code coverage to AbstractFactory