Fix ApacheConf init and mock correct test object